#ifndef ANTISTRESS_H
#define ANTISTRESS_H

#include <QtGui/QMainWindow>
#include "ui_antistress.h"
#include "src/home.h"
#include "src/pause.h"
#include "src/work.h"
#include "src/settings.h"
#include "QTimer"
class Antistress : public QMainWindow
{
    Q_OBJECT

public:
    Antistress(QWidget *parent = 0);
    ~Antistress();

private:
    Ui::antistressClass ui;
    Home *m_home;
    Pause *m_pause;
    Work *m_work;
    Settings *m_settings;

    int freqPauseH;
    int freqPauseMin;
    int lengthPause;
    int sec;
public:
    QTimer *workTimer;
    QTimer *pauseTimer;
    QTimer *refreshTimer;

signals:
    void refresh(int);

public slots:
	void exit();
	void selectPauseWidget();
	void selectSettingsWidget();
	void selectWorkWidget();
	void selectHomeWidget();
        void updateSettings();
        void workEnd();
        void pauseEnd();
        void refreshWP();
};

#endif // ANTISTRESS_H
